package org.glorylight.hacks.social.model;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Type;
@Entity
@Table(name = "invitation_log")
public class InvitationLog implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -363143393050874959L;

	@Id
	@Type(type = "uuid")
	@Column(length = 32)
	private UUID id;

	@Column(name = "sender")
	private String sender;
	
	@Column(name = "recipient")
	private String recipient;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "date_created")
	private Date dateCreated;
	
	public InvitationLog(){
		
	}
	
	public InvitationLog(UUID id, String sender, String recipient, Date dateCreated) {
		this.id = id;
		this.recipient = recipient;
		this.sender = sender;
		this.dateCreated = dateCreated;
	}

	public UUID getId() {
		return id;
	}

	public void setId(UUID id) {
		this.id = id;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getRecipient() {
		return recipient;
	}

	public void setRecipient(String recipient) {
		this.recipient = recipient;
	}

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}
	
	
}
